package com.xjoyt.pay.master.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.interfaces.DistributorProfitContract;
import com.xjoyt.pay.master.params.DistributorProfitGroupParam;
import com.xjoyt.pay.master.params.DistributorProfitPageParam;
import com.xjoyt.pay.master.services.DistributorProfitService;
import com.xjoyt.pay.master.vo.DistributorProfitGroup;

@RestController
@RequestMapping("distributorProfit")
public class DistributorProfitController extends AbstractController implements DistributorProfitContract {

	@Autowired
	private DistributorProfitService service;

	@Override
	public PageResult<DistributorProfitGroup> loadPageGroup(@RequestBody PageParam<DistributorProfitGroupParam> param) {
		return service.loadPageGroup(param);
	}

	@Override
	public PageResult<com.xjoyt.pay.master.vo.DistributorProfit> loadPageMap(
			@RequestBody PageParam<DistributorProfitPageParam> param) {
		return service.loadPageMap(param);
	}

}
